package com.bnlr.lrparking.adapter;

import android.app.DownloadManager;
import android.graphics.Color;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.bnlr.lrparking.R;
import com.bnlr.lrparking.model.StallDetailBean;
import com.bnlr.lrparking.model.StallListBean;
import com.bnlr.lrparking.view.CarCommon;
import com.bnlr.lrparking.widget.SuperTextView;

import java.util.List;

/**
 * Created by tian on 2017/9/16.
 */

public class StallDealDetailAdapter extends BaseQuickAdapter<StallDetailBean.DataBean.DiscountData,BaseViewHolder>{

    public StallDealDetailAdapter(@Nullable List<StallDetailBean.DataBean.DiscountData> data) {
        super(R.layout.item_stalldealdetail,data);
    }

    @Override
    protected void convert(final BaseViewHolder holder, StallDetailBean.DataBean.DiscountData item) {
        holder.setIsRecyclable(false);
        SuperTextView delete = holder.getView(R.id.item_stalldealdetia);
        delete.setTextColor(Color.parseColor("#"+item.getTextColor()));
        delete.setBackGround(Color.parseColor("#"+item.getBackColor()));
        delete.setText(item.getTitle());

    }
}
